<template>
  <ConvertLayout :standard="standard" :initial="initial" :selectOptionsList="selectOptionsList" />
</template>

<script setup lang="ts">
import ConvertLayout from "../layout/ConvertLayout.vue";

// 光强换算的标准
const standard = {
  label: "勒(lx)",
  value: 1,
};
// 光强换算的初始值
const initial = {
  label: "流明/平方米(lm/m²)",
  value: 1,
};

// 进制换算的数值类型
const selectOptionsList: ConvertOptionsType = [
  {
    type: "group",
    label: "公制",
    key: "公制",
    children: [
      {
        label: "厘米烛光(ph)",
        value: "厘米烛光(ph)",
        num: 0.0001,
        disabled: false,
      },
      {
        label: "勒(lx)",
        value: "勒(lx)",
        num: 1,
        disabled: false,
      },
      {
        label: "流明/平方厘米(lm/cm²)",
        value: "流明/平方厘米(lm/cm²)",
        num: 0.0001,
        disabled: false,
      },
      {
        label: "流明/平方米(lm/m²)",
        value: "流明/平方米(lm/m²)",
        num: 1,
        disabled: false,
      },
      {
        label: "辐透(ph)",
        value: "辐透(ph)",
        num: 0.0001,
        disabled: false,
      },
      {
        label: "毫勒克斯(mlx)",
        value: "毫勒克斯(mlx)",
        num: 1000,
        disabled: false,
      },
      {
        label: "微勒克斯(μlx)",
        value: "微勒克斯(μlx)",
        num: 1000000,
        disabled: false,
      },
      {
        label: "千勒克斯(klx)",
        value: "千勒克斯(klx)",
        num: 0.001,
        disabled: false,
      },
      {
        label: "诺克斯(nox)",
        value: "诺克斯(nox)",
        num: 1000,
        disabled: false,
      },
    ],
  },
  {
    type: "group",
    label: "英制",
    key: "英制",
    children: [
      {
        label: "流明/平方英寸(lm/in²)",
        value: "流明/平方英寸(lm/in²)",
        num: 0.000645,
        disabled: false,
      },
      {
        label: "流明/平方英尺(lm/ft²)",
        value: "流明/平方英尺(lm/ft²)",
        num: 0.0929,
        disabled: false,
      },
      {
        label: "英尺烛光(fc)",
        value: "英尺烛光(fc)",
        num: 0.0929,
        disabled: false,
      },
    ],
  },
];
</script>
